//
//  MKUIPickerViewCellModel.h
//  MKUI
//	滚轮分组下的行数据模型
//  Created by sushangjin on 15/6/18.
//  Copyright (c) 2015年 sushangjin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "MKCollectionModel.h"
#import "MKCollectionCellModel.h"
#import "MKCollectionSectionModel.h"
#import "MKUIPickerViewCellProtocol.h"
NS_ASSUME_NONNULL_BEGIN
@class MKUIPickerViewComponentModel,MKUIPickerViewModel;
@interface MKUIPickerViewCellModel : MKCollectionCellModel

@property(nonatomic,readonly,nullable) UIPickerView *pickerView;
@property(nonatomic,readonly,nullable) __kindof MKUIPickerViewModel *pickerViewModel;
@property(nonatomic,readonly,nullable) __kindof MKUIPickerViewComponentModel* componentModel;

@property(nonatomic,assign) Class<MKUIPickerViewCellProtocol> cellClass;
@property(nonatomic,weak,nullable) __kindof UIView <MKUIPickerViewCellProtocol> *cellView;
@property(nonatomic,strong,nullable) NSString *title;
@property(nonatomic,strong,nullable) NSAttributedString *attributedTitle;
@property(nonatomic,copy,nullable) void(^whenSelected)(__kindof MKUIPickerViewCellModel *cellModel);

- (id)initWithTitle:(nullable NSString *)title;

/**
 *  视图显示
 *
 *  @param cellView 视图
 */
- (void)displayCell:(UIView <MKUIPickerViewCellProtocol>*)cellView;

/**
 *  被选中时触发
 *
 *  @param pickerView 滚轮
 */
- (void)didSelected:(UIPickerView *)pickerView;
@end
NS_ASSUME_NONNULL_END
